package com.kelaite.procurement.service;

import java.util.List;

import com.kelaite.procurement.dto.VendorDTO;
import com.kelaite.procurement.dto.VendorUserDTO;
import com.kelaite.procurement.entity.TUser;
import com.kelaite.procurement.entity.TVendor;
import com.kelaite.procurement.entity.TVendorUser;

public interface VendorUserService {
	public TVendorUser save(TVendorUser persistence);

	public void deleteByPrimaryKey(Long id);
	
	public void deleteByObject(TVendorUser persistence);

	public TVendorUser getObject(Long id);
	
	public List<TVendorUser> getAll();

	public List<TVendorUser> getByProperty(String property, Object value);
	
	public List<TVendorUser> getUsersByVendorOfSupplier(TVendor vendor);
	
	public List<TVendorUser> getUserByVendorOfSupplierAndUser(TVendor vendor, TUser user);
	
	public List<VendorUserDTO> getByTVendorAndBusinessTypeAndStatus(
			VendorDTO tVendor, Integer businessType, Integer status);
}
